package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.BannerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 王越潇
 * @version 1.0
 * @Date 2024/9/27 11:46
 * @Type
 */
@RestController
@RequestMapping("app/banner")
@Api(tags = "app端banner列表",description = "")
public class BannerController {
    @Resource
    private BannerService bannerService;
    @GetMapping("getBanner")
    @ApiOperation("banner列表")
    public ResponseResult getBanner(){
        return bannerService.getBanner();
    }
}
